add_library(muduo_protobuf_codec ProtobufCodecLite.cpp)
set_target_properties(muduo_protobuf_codec PROPERITES COMPILES_FLAGS "-Wno-error=shadow")
target_link_libraries(muduo_protobuf_codec muduo_net protobuf z)

# install TARGETS file muduo_protobuf_codec to DESTINATION path(${CMAKE_INSTALL_PREFIX}/lib)
install(TARGETS muduo_protobuf_codec DESTINATION lib)

file(GLOB HEADERS "*.h")
install(FILES ${HEADERS} DESTINATION include/muduo/net/protobuf)
